import request from '@/utils/request'

export function getMenuTree(params) {
  return request({
    url: '/umc/menu/getMenuTree',
    method: 'post',
    data: params
  })
}

export function deleteMenu(params) {
  return request({
    url: '/umc/menu/delete/' + params,
    method: 'post'
  })
}

export function enableMenu(params) {
  return request({
    url: '/umc/menu/enable/' + params,
    method: 'post'
  })
}

export function disableMenu(params) {
  return request({
    url: '/umc/menu/disable/' + params,
    method: 'post'
  })
}

export function modifyMenu(params) {
  return request({
    url: '/umc/menu/modifyMenu',
    method: 'post',
    data: params
  })
}

export function saveMenu(params) {
  return request({
    url: '/umc/menu/saveMenuInfo',
    method: 'post',
    data: params
  })
}

export function checkMenuCode(params) {
  return request({
    url: '/umc/menu/checkMenuCode',
    method: 'post',
    data: params
  })
}

export function getMenuById(params) {
  return request({
    url: '/umc/menu/getMenuById/' + params,
    method: 'post'
  })
}


